package com.weimengchao.core.http;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
@Builder
public class PageResult<T> implements Serializable {

    /**
     * 页码
     */
    private int pageNo;

    /**
     * 每页显示条数
     */
    private long pageSize;

    /**
     * 总条数
     */
    private long total;

    /**
     * 返回记录
     */
    private List<T> records;

}
